local _M = {}

do   --todo 这里好像获取不到
  _M.ENV = {
    PARTNER_SERVICE     = os.getenv("Partner_Service"),
    GAMEGATERGS_SERVICE = os.getenv("GameGateway_Rgs_Service"),
    DATAGATE_SERVICE    = os.getenv("Data_Gateway"),
    ACCOUNTGATE_SERVICE = os.getenv("AccountGateWay_Service"),
    WALLET_SERVICE      = os.getenv("Wallet_Service"),
    PAYMENTGATE_SERVICE = os.getenv("PaymentGateway_PaymentAPI_Address"),
    --PAYMENTGATE_SERVICE ="http://a69183eb34b1b43e68f63a12077b0146-1631340375.ap-northeast-1.elb.amazonaws.com:20102/",
    --DATAGATE_SERVICE    = "http://a0ad5a40633f94a4db48c0549f014982-294305197.ap-northeast-1.elb.amazonaws.com:11070/",
    --WALLET_SERVICE      = "http://a8ee714ade96446f5bd06637ff9816a5-993236124.ap-northeast-1.elb.amazonaws.com:11080/",

  }

  _M.REDIS_SETTINGS = {
    keepalive_timeout = 10000,
    keepalive_size    = 16,
  }

  _M.GAAS_SHARED_REDIS = {
    host      = os.getenv("SharedRedis_Host"),
    port      = os.getenv("SharedRedis_Port"),
    secret    = os.getenv("SharedRedis_Password"),
    db        = os.getenv("SharedRedis_DB"),
    workspace = "gaas",
  }

  _M.GAAS_NSQ = {
    host     = os.getenv("Message_Bus_Nsq_Pub_Host"),
    port     = os.getenv("Message_Bus_Nsq_Pub_Port"),
    topic    = "gaas-send-email-event",
  }



  _M._Event_Bus_Nsq ={--10.101.113.74:4150
    host     = os.getenv("Event_Bus_Nsq_Pub_Host"),
    port     = os.getenv("Event_Bus_Nsq_Pub_Port"),
    register = "event_log_register",
    active   = "event_log_active",
    bind     = "event_log_bind"

    }

  _M.VAR = {
    ACCESS_TOKEN_TTL = 300,

    COIN_TOKEN_MAP = {
      BTC       = "BTC",
      SOL_BTC   = "BTC" and nil,   -- switch off
      TRON_BTC  = "BTC" and nil,   -- switch off
      VAPOR_BTC = "BTC" and nil,   -- switch off
      ETH       = "ETH",
      BSC_ETH   = "ETH" and nil,   -- switch off
      HECO_ETH  = "ETH" and nil,   -- switch off
      TRON_ETH  = "ETH" and nil,   -- switch off
      VAPOR_ETH = "ETH" and nil,   -- switch off
      SOL_ETH   = "ETH" and nil,   -- switch off
      LTC       = "LTC",
      BSC_LTC   = "LTC" and nil,   -- switch off
      DOGE      = "DOGE",
      BSC_DOGE  = "DOGE" and nil,   -- switch off
      HECO_DOGE = "DOGE" and nil,   -- switch off
      BCH       = "BCH",
      BCH_BSC   = "BCH" and nil,   -- switch off
      XRP       = "XRP",
      BSC_XRP   = "XRP" and nil,   -- switch off
      TRON      = "TRX",
      BSC_TRON  = "TRX" and nil,   -- switch off
      EOS_EOS   = "EOS",
      EOS       = "EOS",
      BSC_EOS   = "EOS" and nil,   -- switch off
      BNB_BNB   = "BNB" and nil,   -- switch off
      AVAXC_BNB = "BNB" and nil,   -- switch off
      ETH_BNB   = "BNB" and nil,   -- switch off
      BSC_BNB   = "BNB",
      ETH_USDT  = "USDT",
      BSC_USDT  = "USDT",
      SOL_USDT  = "USDT" and nil,   -- switch off
      TRON_USDT = "USDT",
    },

    MIN_WITHDRAW_AMOUNT = {
      BTC  = "0.00025",
      ETH  = "0.0005",
      LTC  = "0.05",
      DOGE = "50",
      BCH  = "0.03",
      XRP  = "10",
      TRX  = "50",
      EOS  = "3",
      BNB  = "0.02",
      USDT = "5",
    },

    WITHDRAW_FEE_RATIO = "0.0002",
  }

end
return _M